using System;
using System.Collections;
using System.Text;
using System.Windows.Forms;

namespace HandyIRCChat
{
    class NodeSorter : IComparer
    {
        public int Compare(object obj1, object obj2)
        {
            TreeNode node1 = obj1 as TreeNode;
            TreeNode node2 = obj2 as TreeNode;

            return node1.Text.CompareTo(node2.Text);
        }
    }
}
